﻿using University.Workshop.Model.LogicalWinner;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace University.Workshop.Tests
{
    
    
    /// <summary>
    ///This is a test class for LogicalWinnerUserTest and is intended
    ///to contain all LogicalWinnerUserTest Unit Tests
    ///</summary>
    [TestClass()]
    public class LogicalWinnerUserTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest()
        {
            string card = "King"; // TODO: Initialize to an appropriate value
            string expected = "13"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertCards
        ///</summary>
        [TestMethod()]
        public void ConvertCardsTest()
        {
            LogicalWinnerUser target = new LogicalWinnerUser(); // TODO: Initialize to an appropriate value
            string cardsOfTable = " Two Spade Ace Club Queen Diamond Eight Diamond Six Heart"; // TODO: Initialize to an appropriate value
            string cardsOfUser = " King Club Two Heart Jack Diamond King Spade"; // TODO: Initialize to an appropriate value
            target.ConvertCards(cardsOfTable, cardsOfUser);
            
        }

        /// <summary>
        ///A test for ConvertCards
        ///</summary>
        [TestMethod()]
        public void ConvertCardsTest1()
        {
            LogicalWinnerUser target = new LogicalWinnerUser(); // TODO: Initialize to an appropriate value
            string cardsOfTable = " Ace Club Ten Diamond Nine Spade Ace Heart Six Diamond"; // TODO: Initialize to an appropriate value
            string cardsOfUser = " Three Heart Seven Spade King Club Six Spade"; // TODO: Initialize to an appropriate value
            target.ConvertCards(cardsOfTable, cardsOfUser);
            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for ConvertCards
        ///</summary>
        [TestMethod()]
        public void ConvertCardsTest2()
        {
            LogicalWinnerUser target = new LogicalWinnerUser(); // TODO: Initialize to an appropriate value
            string cardsOfTable = " Three Diamond Seven Spade Four Heart Queen Spade Six Spade"; // TODO: Initialize to an appropriate value
            string cardsOfUser = " Five Spade Seven Club Ten Club Seven Heart"; // TODO: Initialize to an appropriate value
            target.ConvertCards(cardsOfTable, cardsOfUser);
            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for GetWinner
        ///</summary>
        [TestMethod()]
        public void GetWinnerTest()
        {
            LogicalWinnerUser target = new LogicalWinnerUser(); // TODO: Initialize to an appropriate value
            target.ConvertCards(" Three Diamond Seven Spade Four Heart Queen Spade Six Spade", " Five Spade Seven Club Ten Club Seven Heart");
            target.GetWinner();
            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for GetWinner
        ///</summary>
        [TestMethod()]
        public void GetWinnerTest1()
        {
            LogicalWinnerUser target = new LogicalWinnerUser(); // TODO: Initialize to an appropriate value
            target.ConvertCards(" Ace Club Ten Diamond Nine Spade Ace Heart Six Diamond", " Three Heart Seven Spade King Club Six Spade");
            target.GetWinner();
            //Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest1()
        {
            string card = "None"; // TODO: Initialize to an appropriate value
            string expected = "1"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest2()
        {
            string card = "Ace";// TODO: Initialize to an appropriate value
            string expected = "14"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest3()
        {
            string card = "Two"; // TODO: Initialize to an appropriate value
            string expected = "2"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest4()
        {
            string card = "Three"; // TODO: Initialize to an appropriate value
            string expected = "3"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
           // Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest5()
        {
            string card = "Four"; // TODO: Initialize to an appropriate value
            string expected = "4"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest6()
        {
            string card = "Five"; // TODO: Initialize to an appropriate value
            string expected = "5"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest7()
        {
            string card = "Six"; // TODO: Initialize to an appropriate value
            string expected = "6"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest8()
        {
            string card = "Eight"; // TODO: Initialize to an appropriate value
            string expected = "8"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
           // Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest9()
        {
            string card = "Seven"; // TODO: Initialize to an appropriate value
            string expected = "7"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest10()
        {
            string card = "Nine"; // TODO: Initialize to an appropriate value
            string expected = "9"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
           // Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest11()
        {
            string card = "Ten"; // TODO: Initialize to an appropriate value
            string expected = "10"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest12()
        {
            string card = "Jack"; // TODO: Initialize to an appropriate value
            string expected = "11"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertNumber
        ///</summary>
        [TestMethod()]
        public void ConvertNumberTest13()
        {
            string card = "Queen"; // TODO: Initialize to an appropriate value
            string expected = "12"; // TODO: Initialize to an appropriate value
            string actual;
            actual = LogicalWinnerUser.ConvertNumber(card);
            Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
